/**
 * Class:	AdviserEvaluation
 * 
 * Variables:
 * 
 *		private String[] strAnswers;
 * 
 * Methods:
 * 		
 * 		public String getQuestion( int questionNo );
 * 
 * Remarks:
 * 
 * 		Variables are set to private and can be accessed
 * 		only through their getters and setters. Setters return
 * 		true if the setting of new values is successful.
 * 		
 * 		The String[] should have a maximum size of 4 [0...3]
 * 
 * @author ( Sharmaine Lim )
 * @version ( 2013-02-28 // YYYY-MM-DD )
 */

package models;

public class AdviserEvaluation extends Evaluation {
	
	/* Instance Variables */
	private String[] strAnswers;
	
	
	
	/**
	 * Constructors
	 */
	
	public AdviserEvaluation( Date dateFiled, String[] strAnswers ) {
		super( dateFiled );
		if ( strAnswers.length == 4 ) {
			this.strAnswers = strAnswers;
		}
	}
    
    
    
    /**
     *  Get Question
     *  	- gets the question for the item
     *  
     *  Parameters
     *		- int questionNo: number of question being requested
     *	
     *	Returns
     *		- String "": Question for that number does not exist
     *		- String !"": Question for that number exists
     */
    public String getQuestion( int questionNo ) {
    	String result = "";
    	
    	switch ( questionNo ) {
    		case 1:		result = "What specific social reality did the" +
    							 " activity take off from or hope to address?";
    					break;
    		case 2:		result = "How were you able to participate during" +
    							 " the conceptualization of the project/" +
    							 "activity?";
    					break;
    		case 3:		result = "How were the organizers of the project/" +
    							 "activity able to utilize the DLSU" +
    							 " Community Engagement Framework?";
						break;
    		case 4:		result = "What were your learning and realizations" +
    							 " from the project/activity? Elaborate if" +
    							 " any, on the transformation process that" +
    							 " occurred.";
    					break;
    	}
    	
    	return result;
    }
	
	
	
	/**
	 * Getters
	 */
	
	public String[] getStrAnswers() {
		return strAnswers;
	}
	
	
	
	/**
	 * Setters
	 */
	
	public boolean setStrAnswers(String[] strAnswers) {
		if ( strAnswers.length == 4 ) {
			this.strAnswers = strAnswers;
			return true;
		}
		return false;
	}
}
